from django.shortcuts import render

# Create your views here.

### 上传图片代码 ###

# from fdfs_client.client import Fdfs_client
# # 1. 创建客户端
# client = Fdfs_client('utils/fastdfs/client.conf')
# # 2. 上传突破
# client.upload_by_filename('/home/zhushanhong/图片/2.jpg')
# 3. 获取 file_id.
# {'Group name': 'group1', 'Remote file_id': 'group1/M00/00/00/wKh_gWcI73GAXLpVAALy1TLupJs796.jpg', 'Status': 'Upload successed.', 'Local file name': '/home/zhushanhong/图片/2.jpg', 'Uploaded size': '188.00KB', 'Storage IP': '192.168.127.129'}
# 4. 通过浏览器进行访问：
# 192.168.127.129:8888/group1/M00/00/00/wKh_gWcI73GAXLpVAALy1TLupJs796.jpg